package com.ccbhelper.provider;

import android.os.Parcel;
import android.os.Parcelable;

public class InstNotice implements Parcelable {

	private String id;
	private String title;
	private String content;
	private String endDate;
	
	public InstNotice(String id,String title){
		this.id = id;
		this.title = title;
	}
	
	public InstNotice(String id,String title,String content,String endDate){
		this.id = id;
		this.title = title;
		this.content = content;
		this.endDate = endDate;
	}
	
	public InstNotice(){};
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	
	public static final Parcelable.Creator<InstNotice> CREATOR = new Creator<InstNotice>(){  
		  
        public InstNotice createFromParcel(Parcel source) {  
            // TODO Auto-generated method stub  
        	InstNotice in = new InstNotice();  
        	in.setId(source.readString());
        	in.setTitle(source.readString());
        	in.setContent(source.readString());
        	in.setEndDate(source.readString()); 
            return in;  
        }  
  
        public InstNotice[] newArray(int size) {  
            // TODO Auto-generated method stub  
            return new InstNotice[size];  
        }  
          
    };  
    
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(id);
		dest.writeString(title);
		dest.writeString(content);
		dest.writeString(endDate);
	}
	
}
